package com.mentaleye.dal.dao;

import java.util.List;
import java.util.Map;

import com.mentaleye.dal.model.DormitoryStudent;
import com.mentaleye.dal.model.DormitoryStudentExample;

public interface DormitoryStudentDao {
	public DormitoryStudent queryDorStudentByStuIdAndDor(Integer stuId, Integer dorId, Integer stayStatus);

	public boolean insertDormitoryStudent(DormitoryStudent dormitoryStudent);
	
	public boolean modifyDormitoryStudent(DormitoryStudent dormitoryStudent);
	
	public boolean deleteDorStudent(Integer stuId,Integer dorId);
	
	public boolean deleteDormitoryStudent(Integer stuId,Integer status);
	
	public List<DormitoryStudent> queryAllDormitory(DormitoryStudentExample example);
	
	public List<DormitoryStudent> queryDormitoryStudentById(Integer id);
	
	public int queryStudentCountByDorId(Integer dorId);
	
	public boolean isExistRelate(Map<String, Object> map);
	
	public DormitoryStudent queryDormitoryStudentByStuId(Integer stuId);
	
	public List<Map<String, Object>> queryMap(Map<String, Object> map);
}
